package src.bean;


public class HbaseMap {

    String tableName;
    String rowkey;
    String columnName;
    String columnValue;
    String timestamp;
    String family;

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getFamily() {
        return family;
    }

    public void setFamily(String family) {
        this.family = family;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getRowkey() {
        return rowkey;
    }

    public void setRowkey(String rowkey) {
        this.rowkey = rowkey;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnValue() {
        return columnValue;
    }

    public void setColumnValue(String columnValue) {
        this.columnValue = columnValue;
    }

    @Override
    public String toString() {
        return "HbaseMap [tableName=" + tableName + ", rowkey=" + rowkey + ", family=" + family
                + ", columnName=" + columnName + ", columnValue=" + columnValue + "]";
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof HbaseMap) {
            HbaseMap hm = (HbaseMap) obj;
            return (tableName.equals(hm.tableName) && rowkey.equals(hm.rowkey)
                    && columnName.equals(hm.columnName) && columnValue.equals(hm.columnValue));
        } else {
            return super.equals(obj);

        }
    }

    @Override
    public int hashCode() {
        // TODO Auto-generated method stub
        return this.toString().hashCode();
    }

}
